import UploadFiles from '@/components/common/photo/UploadFiles.vue'
import ConfigInput from '@/components/common/ConfigInput.vue'
import SortNavList from '@/components/common/SortNavList.vue'
import PhotoViewer from '@/components/common/photo/PhotoViewer.vue'
import InsertPhoto from '@/components/common/photo/InsertPhoto.vue'
import InsertPhotoArr from '@/components/common/photo/InsertPhotoArr.vue'

//http组件
import axios from './axiosHttp.js'
//七牛上传组件
import * as qiniu from 'qiniu-js'

import Sortable from 'sortablejs';

import myfunction from './myfunction.js'

//加载文本编辑器组件
import mavonEditor from 'mavon-editor'


// 这里是重点
export default {
    install:function(Vue){
        Vue.component('UploadFiles',UploadFiles);
        Vue.component('ConfigInput',ConfigInput);
        Vue.component('SortNavList',SortNavList);
        Vue.component('PhotoViewer',PhotoViewer);
        Vue.component('InsertPhoto',InsertPhoto);
        Vue.component('InsertPhotoArr',InsertPhotoArr);

        
        Vue.prototype.$http = axios
        Vue.prototype.$qiniu = qiniu
        Vue.prototype.$comFun = myfunction
        Vue.prototype.$sortable = Sortable
        Vue.use(mavonEditor)
    }
}


